package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.MessageCenter;
import com.wing.cabinet.model.request.MessageCenterForm;
import com.wing.cabinet.model.response.MessageCenterVO;

import java.util.List;
import java.util.Map;

/**
 * 消息中心记录表-Service
 *
 * @author
 */
public interface MessageCenterService extends IService<MessageCenter> {

    /**
     * 添加
     *
     * @param messageCenterForm
     * @return
     */
    int add(MessageCenterForm messageCenterForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<MessageCenterVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<MessageCenterVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    MessageCenterVO get4appById(Long id);

    MessageCenterVO getNewestMessage();
}
